package com.obggtc.picture.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 豆包AI配置类
 * 
 * @author system
 * @date 2025/09/29
 */
@Data
@Component
@ConfigurationProperties(prefix = "doubao")
public class DoubaoAiConfig {
    
    /**
     * 豆包AI API密钥
     */
    private String apiKey;
    
    /**
     * 豆包AI端点URL
     */
    private String apiUrl = "https://ark.cn-beijing.volces.com/api/v3/chat/completions";
    
    /**
     * 默认模型
     */
    private String model = "ep-20241120161759-gfhxd";
    
    /**
     * 超时时间(毫秒)
     */
    private Integer timeout = 30000;
    
    /**
     * 重试次数
     */
    private Integer retryCount = 3;
}
